import QtQuick 1.1
import com.nokia.meego 1.0
import QtMobility.gallery 1.1

Sheet {
    id: sheet;

    acceptButtonText: "Add"
    rejectButtonText: "Cancel"

    property alias inputText: itemText.text;
    property alias titleText: title.text;

    content: Flickable {

        Item {
            y: 30;
            width: 854;
            height: 20;

            Text {
                id: title;
                text: "Enter item text"
                font.family: "Helvetica";
                font.pointSize: 18;
                font.bold: true;
                color: "white";
                anchors.centerIn: parent;
            }
        }


        TextField {
            id: itemText;
            maximumLength: 50
            width: 854 - 8
            y: 74
            x: 4
            enableSoftwareInputPanel: true;
        }

        onVisibleChanged: {
            if (sheet.visible) {
                itemText.platformOpenSoftwareInputPanel();
                itemText.forceActiveFocus();
            }
        }

    }
}
